/**
 * "Visual Paradigm: DO NOT MODIFY THIS FILE!"
 * 
 * This is an automatic generated file. It will be regenerated every time 
 * you generate persistence class.
 * 
 * Modifying its content may cause the program not work, or your work may lost.
 */

/**
 * Licensee: DuKe TeAm
 * License Type: Purchased
 */
package orm;

import java.util.List;
import org.hibernate.criterion.DetachedCriteria;
import org.orm.PersistentSession;
import org.orm.criteria.*;

public class Tbv_provinciaDetachedCriteria extends AbstractORMDetachedCriteria {
	public final IntegerExpression pr_id_provincia;
	public final StringExpression pr_provincia;
	
	public Tbv_provinciaDetachedCriteria() {
		super(orm.Tbv_provincia.class, orm.Tbv_provinciaCriteria.class);
		pr_id_provincia = new IntegerExpression("pr_id_provincia", this.getDetachedCriteria());
		pr_provincia = new StringExpression("pr_provincia", this.getDetachedCriteria());
	}
	
	public Tbv_provinciaDetachedCriteria(DetachedCriteria aDetachedCriteria) {
		super(aDetachedCriteria, orm.Tbv_provinciaCriteria.class);
		pr_id_provincia = new IntegerExpression("pr_id_provincia", this.getDetachedCriteria());
		pr_provincia = new StringExpression("pr_provincia", this.getDetachedCriteria());
	}
	
	public Tbv_regionDetachedCriteria createTbv_regionre_id_regionCriteria() {
		return new Tbv_regionDetachedCriteria(createCriteria("tbv_regionre_id_region"));
	}
	
	public Tbv_comunaDetachedCriteria createTbv_comunaCriteria() {
		return new Tbv_comunaDetachedCriteria(createCriteria("ORM_Tbv_comuna"));
	}
	
	public Tbv_provincia uniqueTbv_provincia(PersistentSession session) {
		return (Tbv_provincia) super.createExecutableCriteria(session).uniqueResult();
	}
	
	public Tbv_provincia[] listTbv_provincia(PersistentSession session) {
		List list = super.createExecutableCriteria(session).list();
		return (Tbv_provincia[]) list.toArray(new Tbv_provincia[list.size()]);
	}
}

